import request from '@/utils/request'

// 查询ETC管理列表
export function listManagement(query) {
  return request({
    url: '/gwc/etcManagement/list',
    method: 'get',
    params: query
  })
}

// 查询ETC管理详细
export function getManagement(ectId) {
  return request({
    url: '/gwc/etcManagement/' + ectId,
    method: 'get'
  })
}

// 新增ETC管理
export function addManagement(data) {
  return request({
    url: '/gwc/etcManagement',
    method: 'post',
    data: data
  })
}

// 修改ETC管理
export function updateManagement(data) {
  return request({
    url: '/gwc/etcManagement',
    method: 'put',
    data: data
  })
}

// 删除ETC管理
export function delManagement(ectId) {
  return request({
    url: '/gwc/etcManagement/' + ectId,
    method: 'delete'
  })
}
